import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import ElementPlus from 'element-plus';
import 'element-plus/theme-chalk/index.css';
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import * as echarts from 'echarts'
import vueEsign from 'vue-esign'

import locale from 'element-plus/lib/locale/lang/zh-cn'
import htmlToPdf from '@/utils/htmlToPdf'

import "@/utils/print.css";


const app = createApp(App)

for (let iconName in ElementPlusIconsVue){
    app.component(iconName, ElementPlusIconsVue[iconName])
}
app.use(store).use(router).use(vueEsign).use(htmlToPdf).use(ElementPlus, { locale }).mount('#app')
app.echarts = echarts




